package com.grass.cropTradingCenter.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.grass.cropTradingCenter.pojo.dto.CropDto;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 
 * @TableName mini_shop
 */
@TableName(value ="mini_shop")
@Data
public class MiniShop implements Serializable {
    /**
     * 店铺id
     */
    @TableId(value = "shop_id", type = IdType.AUTO)
    private Integer shopId;

    /**
     * 店铺所属店主
     */
    @TableField(value = "shop_user_id")
    private Integer shopUserId;

    /**
     * 店铺头像
     */
    @TableField(value = "shop_avatar")
    private String shopAvatar;

    /**
     * 店铺描述
     */
    @TableField(value = "shop_description")
    private String shopDescription;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 店铺名称
     */
    @TableField(value = "shop_name")
    private String shopName;

    /**
     * 被关注数
     */
    @TableField(value = "start_num")
    private Integer startNum;

    /**
     * 好评个数
     */
    @TableField(value = "good_evaluate_num")
    private Integer goodEvaluateNum;

    /**
     * 差评个数
     */
    @TableField(value = "bad_evaluate_num")
    private Integer badEvaluateNum;

    /**
     * 一般评价个数
     */
    @TableField(value = "general_evaluate_num")
    private Integer generalEvaluateNum;

    @TableField(exist = false)
    private List<CropDto> cropList;

    private Integer goodsNum;

    @TableField(exist = false)
    private Integer isFollow;

    @TableField(exist = false)
    private Date startTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}